//
//  UIView+frame.m
//  SubscribeBase
//
//  Created by changshuai on 7/15/18.
//  Copyright © 2018 changshuai. All rights reserved.
//

#import "UIView+frame.h"

@implementation UIView (frame)

-(void)setWidth:(CGFloat) width {
    self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y, width, self.frame.size.height);
}

-(void)setHeight:(CGFloat) height {
     self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y, self.frame.size.width, height);
}
@end
